#!/bin/bash

source config


# move in man:

# 1-8:
type=1

cp ${command}.${type} ${command}.${type}-copy
gzip ${command}.${type} # arhive to zx file
sudo mv ${command}.${type}.gz /usr/share/man/man${type}/
sudo chown root:root /usr/share/man/man${type}/${command}.${type}.gz
mv ${command}.${type}-copy ${command}.${type}
